/**
 * TODO
 * @Project: topcrazy
 * @Title: AccountStatus.java
 * @Package net.topcrazy.base.common.constant
 * @author notepad
 * @Date Sep 26, 2012 8:27:05 PM
 * @Copyright: 2012 www.topcrazy.net
 * @Version v1.0.0
 */
package net.topcrazy.base.common.constant;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import net.topcrazy.base.util.OptionBean;

/**
 * TODO
 * 
 * @ClassName: AccountStatus
 * @author notepad
 */
public class Constant implements Serializable
{
	/**
	* 用户停用/启用状态 
	* @ClassName: AccountStatusCode
	* @author notepad
	*/
	public static final class AccountStatusCode
	{
		public static final String disable = "0";
		public static final String enabled = "1";
		private static final List<OptionBean> accountList = new ArrayList<OptionBean>(2);
		static
		{
			accountList.add(new OptionBean(disable, "停用"));
			accountList.add(new OptionBean(enabled, "启用"));
		}

		/**
		* 根据状态码获取中文意思
		* @Title: getAccountStatus
		* @param statusCode
		* @return 停用/启用
		*/
		public static String getAccountStatus(String statusCode)
		{
			if (disable.equals(statusCode))
			{
				return "停用";
			} else if (enabled.equals(statusCode))
			{
				return "启用";
			} else
			{
				return "";
			}
		}

	}

}
